﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using SimpleRest.Core.Routing.Handlers;
using SimpleRest.Core;

namespace SimpleRest.WebTest.Handlers
{
    public class MyTestMessageHandler : SimpleRest.Core.IHttpMessageHandler
    {
        public ExecuteResponseHandler Execute(MessageHandlerContext requestContext)
        {
            return (response) =>
            {
                response.ResponseHeaders.Add(new Header("My-Custom-Header", "My Custom Value"));
            };
        }
    }
}